Skip to content

Fix const qualifiers of point::operator== and point::distance - #523

Open
prakhar0608shrma wants to merge 1 commit into
GeomScale:developfrom
prakhar0608shrma:fix-point-const-qualifiers
Open

prakhar0608shrma wants to merge 1 commit into
GeomScale:developfrom
prakhar0608shrma:fix-point-const-qualifiers

Conversation

@prakhar0608shrma

Copy link
Copy Markdown

operator== took its argument by non-const reference and distance() was not a const member, so neither could be used with const points or temporaries. Both only read data, so behavior is unchanged.

Fixes #522

operator== took its argument by non-const reference and distance() was
not a const member, so neither could be used with const points or
temporaries. Both only read data, so behavior is unchanged.

Fixes GeomScale#522
@prakhar0608shrma prakhar0608shrma changed the title Fix const qualifiers of point::operator== and point::distance Fix const qualifiers of point::operator== and point::distance Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

point: operator== and distance() have incorrect const qualifiers

1 participant